package com.chris.design.pattern.samples.prototype;

import com.chris.design.pattern.samples.builder.AbstractBuilder;
import com.chris.design.pattern.samples.builder.Product;

public class ConcreteBuilder implements AbstractBuilder {

    private Product product = new Product();

    @Override
    public void buildPart1() {
        product.setPart1("part1, 构建产品的第1个零件");
    }

    @Override
    public void buildPart2() {
        product.setPart2("part2, 构建产品的第2个零件");
    }

    @Override
    public Product retrieveResult() {
        return product;
    }
}
